package com.java.util;

import redis.clients.jedis.JedisPool;

public class RedisConnection {

    private static String host = "192.168.164.128";
    private static int port = 6379;
    public String test() {
	
	return null;
    }
    
    public static void main(String[] args) {
//	Jedis redis = new Jedis("192.168.164.128", 6379);
//	redis.set("kk", "kk is a good boy!");
//	String kk = redis.get("kk");
//	System.out.println(kk);
	JedisPool pool = new JedisPool(host, port);
	String kk = pool.getResource().get("kk");
	System.out.println(kk);
    }
    
}
